﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C7D RID: 3197
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class NpcExtraInfo : IMessage<NpcExtraInfo>, IMessage, IEquatable<NpcExtraInfo>, IDeepCloneable<NpcExtraInfo>, IBufferMessage
	{
		// Token: 0x17002841 RID: 10305
		// (get) Token: 0x06008EE4 RID: 36580 RVA: 0x0017B9A4 File Offset: 0x00179BA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<NpcExtraInfo> Parser
		{
			get
			{
				return NpcExtraInfo._parser;
			}
		}

		// Token: 0x17002842 RID: 10306
		// (get) Token: 0x06008EE5 RID: 36581 RVA: 0x0017B9AB File Offset: 0x00179BAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return NpcExtraInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002843 RID: 10307
		// (get) Token: 0x06008EE6 RID: 36582 RVA: 0x0017B9BD File Offset: 0x00179BBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return NpcExtraInfo.Descriptor;
			}
		}

		// Token: 0x06008EE7 RID: 36583 RVA: 0x0017B9C4 File Offset: 0x00179BC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcExtraInfo()
		{
		}

		// Token: 0x06008EE8 RID: 36584 RVA: 0x0017B9CC File Offset: 0x00179BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcExtraInfo(NpcExtraInfo other) : this()
		{
			switch (other.KPNPDHNAAACCase)
			{
			case NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM:
				this.HNOKLPJMGJM = other.HNOKLPJMGJM.Clone();
				break;
			case NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo:
				this.RogueGameInfo = other.RogueGameInfo.Clone();
				break;
			case NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG:
				this.MFHKADKHLBG = other.MFHKADKHLBG.Clone();
				break;
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008EE9 RID: 36585 RVA: 0x0017BA4C File Offset: 0x00179C4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcExtraInfo Clone()
		{
			return new NpcExtraInfo(this);
		}

		// Token: 0x17002844 RID: 10308
		// (get) Token: 0x06008EEA RID: 36586 RVA: 0x0017BA54 File Offset: 0x00179C54
		// (set) Token: 0x06008EEB RID: 36587 RVA: 0x0017BA6D File Offset: 0x00179C6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcRogueGameInfo RogueGameInfo
		{
			get
			{
				if (this.kPNPDHNAAACCase_ != NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo)
				{
					return null;
				}
				return (NpcRogueGameInfo)this.kPNPDHNAAAC_;
			}
			set
			{
				this.kPNPDHNAAAC_ = value;
				this.kPNPDHNAAACCase_ = ((value == null) ? NpcExtraInfo.KPNPDHNAAACOneofCase.None : NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo);
			}
		}

		// Token: 0x17002845 RID: 10309
		// (get) Token: 0x06008EEC RID: 36588 RVA: 0x0017BA84 File Offset: 0x00179C84
		// (set) Token: 0x06008EED RID: 36589 RVA: 0x0017BA9D File Offset: 0x00179C9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KOKLNINMGGD MFHKADKHLBG
		{
			get
			{
				if (this.kPNPDHNAAACCase_ != NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG)
				{
					return null;
				}
				return (KOKLNINMGGD)this.kPNPDHNAAAC_;
			}
			set
			{
				this.kPNPDHNAAAC_ = value;
				this.kPNPDHNAAACCase_ = ((value == null) ? NpcExtraInfo.KPNPDHNAAACOneofCase.None : NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG);
			}
		}

		// Token: 0x17002846 RID: 10310
		// (get) Token: 0x06008EEE RID: 36590 RVA: 0x0017BAB4 File Offset: 0x00179CB4
		// (set) Token: 0x06008EEF RID: 36591 RVA: 0x0017BACC File Offset: 0x00179CCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DEEGBJJPKGP HNOKLPJMGJM
		{
			get
			{
				if (this.kPNPDHNAAACCase_ != NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM)
				{
					return null;
				}
				return (DEEGBJJPKGP)this.kPNPDHNAAAC_;
			}
			set
			{
				this.kPNPDHNAAAC_ = value;
				this.kPNPDHNAAACCase_ = ((value == null) ? NpcExtraInfo.KPNPDHNAAACOneofCase.None : NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM);
			}
		}

		// Token: 0x17002847 RID: 10311
		// (get) Token: 0x06008EF0 RID: 36592 RVA: 0x0017BAE2 File Offset: 0x00179CE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcExtraInfo.KPNPDHNAAACOneofCase KPNPDHNAAACCase
		{
			get
			{
				return this.kPNPDHNAAACCase_;
			}
		}

		// Token: 0x06008EF1 RID: 36593 RVA: 0x0017BAEA File Offset: 0x00179CEA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearKPNPDHNAAAC()
		{
			this.kPNPDHNAAACCase_ = NpcExtraInfo.KPNPDHNAAACOneofCase.None;
			this.kPNPDHNAAAC_ = null;
		}

		// Token: 0x06008EF2 RID: 36594 RVA: 0x0017BAFA File Offset: 0x00179CFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as NpcExtraInfo);
		}

		// Token: 0x06008EF3 RID: 36595 RVA: 0x0017BB08 File Offset: 0x00179D08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(NpcExtraInfo other)
		{
			return other != null && (other == this || (object.Equals(this.RogueGameInfo, other.RogueGameInfo) && object.Equals(this.MFHKADKHLBG, other.MFHKADKHLBG) && object.Equals(this.HNOKLPJMGJM, other.HNOKLPJMGJM) && this.KPNPDHNAAACCase == other.KPNPDHNAAACCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008EF4 RID: 36596 RVA: 0x0017BB80 File Offset: 0x00179D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo)
			{
				num ^= this.RogueGameInfo.GetHashCode();
			}
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG)
			{
				num ^= this.MFHKADKHLBG.GetHashCode();
			}
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM)
			{
				num ^= this.HNOKLPJMGJM.GetHashCode();
			}
			num ^= (int)this.kPNPDHNAAACCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008EF5 RID: 36597 RVA: 0x0017BBF6 File Offset: 0x00179DF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008EF6 RID: 36598 RVA: 0x0017BBFE File Offset: 0x00179DFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008EF7 RID: 36599 RVA: 0x0017BC08 File Offset: 0x00179E08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.HNOKLPJMGJM);
			}
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.RogueGameInfo);
			}
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.MFHKADKHLBG);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008EF8 RID: 36600 RVA: 0x0017BC84 File Offset: 0x00179E84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGameInfo);
			}
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.MFHKADKHLBG);
			}
			if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.HNOKLPJMGJM);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008EF9 RID: 36601 RVA: 0x0017BCF8 File Offset: 0x00179EF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(NpcExtraInfo other)
		{
			if (other == null)
			{
				return;
			}
			switch (other.KPNPDHNAAACCase)
			{
			case NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM:
				if (this.HNOKLPJMGJM == null)
				{
					this.HNOKLPJMGJM = new DEEGBJJPKGP();
				}
				this.HNOKLPJMGJM.MergeFrom(other.HNOKLPJMGJM);
				break;
			case NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo:
				if (this.RogueGameInfo == null)
				{
					this.RogueGameInfo = new NpcRogueGameInfo();
				}
				this.RogueGameInfo.MergeFrom(other.RogueGameInfo);
				break;
			case NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG:
				if (this.MFHKADKHLBG == null)
				{
					this.MFHKADKHLBG = new KOKLNINMGGD();
				}
				this.MFHKADKHLBG.MergeFrom(other.MFHKADKHLBG);
				break;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008EFA RID: 36602 RVA: 0x0017BDB5 File Offset: 0x00179FB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008EFB RID: 36603 RVA: 0x0017BDC0 File Offset: 0x00179FC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 74U)
					{
						if (num != 90U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							KOKLNINMGGD koklninmggd = new KOKLNINMGGD();
							if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.MFHKADKHLBG)
							{
								koklninmggd.MergeFrom(this.MFHKADKHLBG);
							}
							input.ReadMessage(koklninmggd);
							this.MFHKADKHLBG = koklninmggd;
						}
					}
					else
					{
						NpcRogueGameInfo npcRogueGameInfo = new NpcRogueGameInfo();
						if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.RogueGameInfo)
						{
							npcRogueGameInfo.MergeFrom(this.RogueGameInfo);
						}
						input.ReadMessage(npcRogueGameInfo);
						this.RogueGameInfo = npcRogueGameInfo;
					}
				}
				else
				{
					DEEGBJJPKGP deegbjjpkgp = new DEEGBJJPKGP();
					if (this.kPNPDHNAAACCase_ == NpcExtraInfo.KPNPDHNAAACOneofCase.HNOKLPJMGJM)
					{
						deegbjjpkgp.MergeFrom(this.HNOKLPJMGJM);
					}
					input.ReadMessage(deegbjjpkgp);
					this.HNOKLPJMGJM = deegbjjpkgp;
				}
			}
		}

		// Token: 0x04003684 RID: 13956
		private static readonly MessageParser<NpcExtraInfo> _parser = new MessageParser<NpcExtraInfo>(() => new NpcExtraInfo());

		// Token: 0x04003685 RID: 13957
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003686 RID: 13958
		public const int RogueGameInfoFieldNumber = 9;

		// Token: 0x04003687 RID: 13959
		public const int MFHKADKHLBGFieldNumber = 11;

		// Token: 0x04003688 RID: 13960
		public const int HNOKLPJMGJMFieldNumber = 7;

		// Token: 0x04003689 RID: 13961
		private object kPNPDHNAAAC_;

		// Token: 0x0400368A RID: 13962
		private NpcExtraInfo.KPNPDHNAAACOneofCase kPNPDHNAAACCase_;

		// Token: 0x02001B2B RID: 6955
		public enum KPNPDHNAAACOneofCase
		{
			// Token: 0x04006670 RID: 26224
			None,
			// Token: 0x04006671 RID: 26225
			RogueGameInfo = 9,
			// Token: 0x04006672 RID: 26226
			MFHKADKHLBG = 11,
			// Token: 0x04006673 RID: 26227
			HNOKLPJMGJM = 7
		}
	}
}
